//
//  TLProtocol.h
//  WebViewPreload
//
//  Created by tianlong on 2018/2/12.
//  Copyright © 2018年 tianlong. All rights reserved.
//


@class TLConnection;
@protocol TLConnectionDelegate <NSObject>
@required
- (void)connection:(TLConnection *)connection didReceiveResponse:(NSHTTPURLResponse *)response;
- (void)connection:(TLConnection *)connection didReceiveData:(NSData *)data;
- (void)connection:(TLConnection *)connection didCompleteWithError:(NSError *)error;
- (void)connectionDidCompleteWithoutError:(TLConnection *)connection;
@end

@class TLEngine;
@protocol TLEngineDelegate <NSObject>
@required
- (void)engine:(TLEngine *)engine didRecieveResponse:(NSHTTPURLResponse *)response;
- (void)engine:(TLEngine *)engine didReceiveData:(NSData *)data;
- (void)engine:(TLEngine *)engine didCompleteWithError:(NSError *)error;
- (void)engineDidCompleteWithoutError:(TLEngine *)engine;
@end
